package com.area.cth.service;

import com.area.cth.pojo.Exchange;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

public interface ExchangeService {
    void addExchange(Exchange e);

    List<Exchange> getExchangeList();

    List<Exchange> getFreeList();

    List<Exchange> getMyExchangeTrueList();

    List<Exchange> getMyExchangeAuditList();

    List<Exchange> getMyExchangeFalseList();

    List<Exchange> getExchangeTrueByUserList(Integer userId);

    Exchange getExchangeById(Integer id);

    void update(Exchange e);

    void delete(Integer id);

    void updateAudit(String audit, Integer id);

    IPage<Exchange> exchangeList(Integer pageNo, Integer pageSize, String auditState, Integer isFree, String keyword);
}
